﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace CSF.BusinessCore.Service
{
    [ServiceContract]
    public interface IDataConfigService<TEntity>
    {
        [OperationContract]
        TEntity GetOneByCode(string code);

        [OperationContract]
        List<TEntity> GetEnable();

        [OperationContract]
        List<TEntity> GetDisable();

        [OperationContract]
        List<TEntity> GetStartsWith(string keyword, bool isDisable);

        [OperationContract]
        bool Enable(TEntity t);

        [OperationContract]
        bool Disable(TEntity t);

    }
}
